FROM node:14.18.2-alpine
# FROM node:17-alpine

# node:14.18.2-alpine

# FROM grandfa8/nodejs14-aws:latest
MAINTAINER PoorBoy 

# RUN echo "https://mirrors.tuna.tsinghua.edu.cn/alpine/latest-stable/main/" > /etc/apk/repositories 
# RUN echo "https://mirrors.tuna.tsinghua.edu.cn/alpine/v3.14/main/" > /etc/apk/repositories
RUN echo "https://mirrors.aliyun.com/alpine/v3.14/main/" > /etc/apk/repositories

RUN apk update \
    && apk upgrade \
    && apk add --no-cache bash  bash-completion tzdata
    

RUN cp -r -f /usr/share/zoneinfo/Hongkong /etc/localtime \
    && rm -rf /var/cache/apk/* \
    && /bin/bash

RUN npm config set registry https://registry.npm.taobao.org

EXPOSE 8080

WORKDIR /mysrc
 


ADD s /opt/

RUN chmod a+x /opt/s
 
# ENTRYPOINT ["/opt/s"]

CMD [ "top" ]
